Tegra: call 'early_init' handler earlier during boot
authorVarun Wadekar <[email protected]>
Wed, 20 Sep 2017 22:09:38 +0000 (15:09 -0700)
committerVarun Wadekar <[email protected]>
Wed, 23 Jan 2019 18:31:30 +0000 (10:31 -0800)
This patch calls the 'early_init' handler earlier during boot. This
allows the platforms using Tegra186 onwards to init the BPMP interface
earlier.

Change-Id: I0d540df39de7864ce9051ebe11eca5432c462ebf
Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/common/tegra_bl31_setup.c

index afb10fef47619a0334d0610403eee0f7a88e5962..4712b8ab6fc636065246b33c15a6aeb5346f05fc 100644 (file)
@@ -227,6 +227,9 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
         */
        tegra_delay_timer_init();
 
+       /* Early platform setup for Tegra SoCs */
+       plat_early_platform_setup();
+
        /*
         * Do initial security configuration to allow DRAM/device access.
         */
@@ -269,9 +272,6 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
                }
        }
 
-       /* Early platform setup for Tegra SoCs */
-       plat_early_platform_setup();
-
        /*
         * Add timestamp for platform early setup exit.
         */